package com.sie.demo.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.sie.demo.entity.Menu;
import com.sie.demo.entity.Users;
import com.sie.demo.entity.vo.PageUserVo;
import com.sie.demo.entity.vo.QueryUserVo;


import javax.servlet.http.HttpSession;
import java.util.List;


/**
 * @author liaozhifeng
 * @date 2021/7/27 13:51
 * @Version 1.0
 */
public interface UserService extends IService<Users> {

    /**
     * 新增用户
     * @param users
     * @return
     */
     Integer addUsers(Users users);

    /**
     * 登录
     * @param user_name
     * @param password
     * @param verifyInput
     * @param session
     * @return
     */
     Users login(String user_name, String password, String verifyInput, HttpSession session);

    /**
     * 分页查询&模糊查询
     * @param currentPage
     * @param pageSize
     * @param queryUserVo
     * @return
     */
     PageUserVo selectAll(long currentPage, long pageSize, QueryUserVo queryUserVo);

    /**
     * 删除
     * @param userSelected
     * @return
     */
     Integer deleteUserByIds(String[] userSelected);

    /**
     * 判断是否重复
     * @param userName
     * @return
     */
     Users getOne(String userName);

    /**'
     * 编辑用户
     * @param users
     * @return
     */
     Integer editUser(Users users);

    /**
     * 根据用户查对应的菜单
     * @param userId
     * @return
     */
    List<Menu> findAllMenuByUserId(Integer userId);

}
